package br.com.jmmarca.util;

import java.util.List;

public class AppException extends Exception {


    private boolean warning = false;

    List<String> messages;

    public AppException(String msg) {
        super(msg);
    }

    public AppException(String msg, boolean warning) {
        super(msg);
        this.warning = warning;
    }

    public AppException(String msg, List<String> messages) {
        super(msg);
        this.messages = messages;
    }

    public AppException(String message, Throwable cause) {
        super(message, cause);
    }

    public List<String> getMessages() {
        return messages;
    }

    public boolean isWarning() {
        return warning;
    }

}